package com.yanqu.road.server.cmd.orewar.task;

import com.yanqu.road.entity.player.UserPatrons;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.orewar.OreWarMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class PatronsAbilityChangeTask extends GeneralTask {

	private GamePlayer player;

	private int activityId;

	private int pitId;

	private UserPatrons userPatrons;

	public PatronsAbilityChangeTask(GamePlayer player, int activityId, int pitId, UserPatrons userPatrons){
		this.player = player;
		this.activityId = activityId;
		this.pitId = pitId;
		this.userPatrons = userPatrons;
	}

	@Override
	public void doRun() {
		OreWarMgr.patronsAbilityChange(player, activityId, pitId, userPatrons);
		OreWarMgr.crossPatronsAbilityChange(player, activityId, pitId, userPatrons);
	}
}
